package wwy.Entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.ManyToOne;
import lombok.Getter;
import lombok.Setter;
import wwy.Entity.orgEntity.LogicEntity;

@Getter
@Setter
@Entity
public class Catalogue extends LogicEntity {
    private String chapterName;
    private Double chapterPosition;

    @ManyToOne(fetch = FetchType.LAZY)
    @JsonIgnoreProperties(value = {"catalogues"})
    private Book book;
}
